function FindContinuousSequence(sum)
{
    // write code here
    if(sum === 0) return []
    if(sum === 2) return []
    if(sum === 1) return []
    let left = 1
    let right = 2
    let res = []
    let sumArray = new Array()
    for(let i = 0;i < sum;i++){
      sumArray.push(i)
    }
    let curSum = Math.floor((left + right) * (right - left + 1) / 2)
    while(left <= Math.floor(sum / 2)){
      if(curSum > sum){
        curSum -= left
        left++
      }else if (curSum < sum){
        right++
        curSum += right
      }else{
        res.push(sumArray.slice(left,right+1))
        right++
        curSum += right
      }
    }
    return res
}
module.exports = {
    FindContinuousSequence : FindContinuousSequence
};